package com.hyt.it.ogt.kq.service.bm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hyt.it.ogt.kq.service.bm.model.entity.NonOpenInfo;
import com.hyt.it.ogt.kq.service.bm.model.vo.NoOpenParam;
import com.hyt.it.ogt.kq.service.bm.model.vo.NoOpenQueryParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

public interface NonOpenMapper extends BaseMapper<NonOpenInfo> {

    IPage<NonOpenInfo> queryPage(NoOpenParam noOpenParam);

    List<NonOpenInfo> queryList(NoOpenQueryParam noOpenParam);

    int getStudentByCard(@Param("projectId") String projectId, @Param("cardNumber") String cardNumber, @Param("id") String id);

    int statQualifications(@Param("projectId") String projectId, @Param("deptIds") Set<String> deptIds);

    String queryStuCardNum(@Param("studentId") String studentId, @Param("projectId") String projectId);

    void updateBm(@Param("studentId") String studentId, @Param("projectId") String projectId,
                  @Param("cardNum") String cardNum);


    NonOpenInfo queryStudentByCardNum(@Param("projectId") String projectId, @Param("cardNum") String cardNum);

}
